package com.litchi.persistence.repo;

import com.litchi.entity.Book;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by palad on 2016/5/6.
 */
public interface BookOwnRepository extends Repository<Book,Long> {
    List<Book> findByName(String name);
    List<Book> findByPrice(long price);
    List<Book> findByNameAndAuthor(String name, String author);
}
